package com.cy;

public class InitSubStep extends SubStepAbstract{
    private String step;
    private Integer stepNum;

    public InitSubStep(String step, Integer stepNum) {
        this.step = step;
        this.stepNum = stepNum;
    }

    @Override
    protected void doTask() {
        switch (this.stepNum) {
            case 1:
                System.out.println(this.step);
                this.setSuccess(true);
                break;
            case 2:
                System.out.println(this.step);
                this.setSuccess(true);
                break;
            case 3:
                System.out.println(this.step);
                this.setSuccess(true);
                break;
        }
    }
}
